from rest_framework.viewsets import ModelViewSet
from region.serializers import RegionSerializer, RegionPointSerializer, RegionVehicleSerializer
from region.models import Region, RegionPoint, RegionVehicle


class RegionViewSet(ModelViewSet):
    queryset = Region.objects.all()
    serializer_class = RegionSerializer


class RegionPointViewSet(ModelViewSet):
    queryset = RegionPoint.objects.all()
    serializer_class = RegionPointSerializer


class RegionVehicleViewSet(ModelViewSet):
    queryset = RegionVehicle.objects.all()
    serializer_class = RegionVehicleSerializer
